﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;


namespace TrackSystem.Entities.Camera
{
    /// <summary>
    /// 摄像头记录表
    /// </summary>
    [Table("camera")]
    public class CameraTable
    {
        /// <summary>
        /// 统一标识符
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        [Display(Name = "统一标识符")]
        public int Id { get; set; }
        /// <summary>
        /// 通道名称
        /// </summary>
        [Required]
        [Display(Name = "摄像机名称")]
        public required string Name { get; set; }
        /// <summary>
        /// 摄像机描述
        /// </summary>
        public string? Description { get; set; }
        /// <summary>
        /// IP地址
        /// </summary>
        public required string Ip { get; set; }
        /// <summary>
        /// 端口号
        /// </summary>
        public int Port { get; set; }
        /// <summary>
        /// 登录账号
        /// </summary>
        public string? Admin { get; set; }
        /// <summary>
        /// 登录密码
        /// </summary>
        public string? Password { get; set; }
    }
}
